﻿using System.Collections.Generic;
using PropertyExpression.Common;

namespace PropertyExpression.ControllableQuery.Test.Queries
{
    public partial class EnumerablePublicationQuery : IQuery<IPublicationInfo>
    {
        private readonly IEnumerable<EnumerablePublicationQueryItem> publicationQueryItems;

        public EnumerablePublicationQuery(IEnumerable<EnumerablePublicationQueryItem> publicationQueryItems)
        {
            this.publicationQueryItems = publicationQueryItems;
        }
    }

    public class EnumerablePublicationQueryItem
    {
        public readonly IOptionalValue<IParam<string>> PublicationCode;

        public EnumerablePublicationQueryItem(IOptionalValue<IParam<string>> publicationCode)
        {
            PublicationCode = publicationCode;
        }
    }
}